# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        潘炎珍  
# Name:         test04
# Description:
# Author:       98745
# Date:         2019/3/16
#-------------------------------------------------------------------------------

dict={
    'name':'pan',
    'sex':'女',
    'age':20
}

list=[1,2,3,4,5]

class Test:
    def __init__(self,*list,**pram):
        self.list=list
        for item in pram.items():
            if item[0]=='name':
                self.name=item[1]
            elif item[0]=='sex':
                self.sex=item[1]
            else:
                self.age=item[1]

    def get_info(self):
        return '姓名：{}，性别：{}，年龄：{},列表：{}'.format(self.name,self.sex,self.age,self.list)


if __name__ == '__main__':
    test=Test(*list,**dict)
    print(test.get_info())

